layui.extend({admin:'lay/modules/admin'}).define(['admin','conf'],function(exports){
    //解决 IE8 不支持console
    window.console = window.console || (function () {
        var c = {}; c.log = c.warn = c.debug = c.info = c.error = c.time = c.dir = c.profile
        = c.clear = c.exception = c.trace = c.assert = function () { };
        return c;
    })();
    //配置三方组件路径
    layui.extend(layui.conf.extend);
    var modules = [];
    layui.each(layui.conf.extend, function (key) {
        modules.push(key);
    });
    //引入组件
    layui.use(modules,function () {
        //渲染页面
        layui.admin.initPage();
    });
    exports('index',{});
});